package com.kkb.service;

import com.kkb.dao.BookDao;
import com.kkb.pojo.Book;
import org.springframework.stereotype.Service;

@Service("bookService6")
public class BookService implements IService{

    private BookDao bookDao;

    public BookService() {
    }

    public BookService(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    @Override
    public void add(){
        System.out.println("BookService-------Add-------------");//核心业务
    }

    @Override
    public void add(int id, String name){
        System.out.println("BookService-----Add-------------");
    }

    public BookDao getBookDao() {
        return bookDao;
    }

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    @Override
    public boolean update(int num) {

        System.out.println("BookService-----update-------");
        if (num>666){
            return true;
        }
        return false;
    }
}
